ViewStubCompat
Backport of android.view.ViewStub so that we can set the android.view.LayoutInflater on devices before Jelly Bean.
Constructors
Link copied to clipboard
constructor(@NonNull context: @NonNull Context, @Nullable attrs: @Nullable AttributeSet, defStyle: Int)
Types
Link copied to clipboard
interface OnInflateListener
Listener used to receive a notification after a ViewStub has successfully inflated its layout resource.
Functions
Link copied to clipboard
Returns the id taken by the inflated view.
Link copied to clipboard
Get current LayoutInflater used in inflate.
Link copied to clipboard
Returns the layout resource that will be used by setVisibility or inflate to replace this StubbedView in its parent by another view.
Link copied to clipboard
Inflates the layout resource identified by getLayoutResource and replaces this StubbedView in its parent by the inflated layout resource.
Link copied to clipboard
Defines the id taken by the inflated view.
Link copied to clipboard
Link copied to clipboard
Specifies the layout resource to inflate when this StubbedView becomes visible or invisible or when inflate is invoked.
Link copied to clipboard
Specifies the inflate listener to be notified after this ViewStub successfully inflated its layout resource.
Link copied to clipboard